{include file="Public:header" /}

		<div class="bar bar-nav">
			<h1 class="title">会员单位</h1>
			<i class="icon icon-left" onclick="window.history.go(-1);"></i>
		</div>
		
		<nav class="bar bar-tab">
			<a class="tab-item active" href="/">
				<span class="icon icon-home"></span>
				<span class="tab-label">首页</span>
			</a>
			<a class="tab-item" href="{:U('Users/index')}">
				<span class="icon iconfont icon-account"></span>
				<span class="tab-label">用户中心</span>
			</a>
			{if condition="$apply_show"}
			<a class="tab-item" href="{:U('Index/applyUserType')}">
				<span class="icon iconfont icon-renshu"></span>
				<span class="tab-label">我要加入</span>
			</a>
			{/if}
		</nav>

		<div class="content">
			<div class="swiper-container swiper-container-horizontal">
				<div class="swiper-wrapper">
					{foreach name="benner" item="benner" key="k"}
					<div class="swiper-slide"><a href="{$benner['link']}"><img src="{$benner['advert_img']}"></a></div>
					{/foreach}
				</div>
				<div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets">
					<span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span>
					<span class="swiper-pagination-bullet"></span>
				</div>
			</div>
			<style>
				#mechanism-tab a{float:left;width:5rem;}
			</style>
			<div class="buttons-tab screen mechanism-tab clearfix" style="marign-top:10px;">
				<div id="mechanism-tab">
				<a class="tab-link button active" href="#a1">
					<!--副会长-->学校
				</a>
				<a class="tab-link button" href="#a2">
					<!--理事--> 国旗联盟
				</a>
				<a class="tab-link button" href="#a3">
					国旗文化
				</a>
				<a class="tab-link button" href="#a4">
					军事运动
				</a>
				<a class="tab-link button" href="#a5">
					国防传媒
				</a>
				<a class="tab-link button" href="#a6">
					军事警觉
				</a>
				</div>
			</div>
			
			<div class="tabs">
				<div class="in_hot_box mechan tab active" id="a1">
				  <div id="user3">
					{foreach name="user3_data" item="user3" key="k"}
					<div class="card demo-card-header-pic">
						<a href="{:U('UserCompany/user_detail',array('id'=>$user3['id']))}">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="{$user3['card_img']}" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name">{$user3['full_name']}</font></p>
								<p class="card-text">{$user3['introduce']|htmlspecialchars_decode}</p>
							</div>
						</div>
						</a>
					</div>
				    {/foreach}
				  </div>
				    {if condition="$user3_show"}
					<div class="infinite-scroll-preloader" id="user3_quan" style="display:none;">
						<div class="preloader"></div>
					 </div>
					<p onclick="ajax_user3_submit();" class="user3_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
					{else/}
					<p id="load_more"> 暂无数据！</p>
					{/if}
				</div>
			
			<div class="in_hot_box mechan tab" id="a2">
				<div id="user4">
					{foreach name="user4_data" item="user4" key="k"}
					<div class="card demo-card-header-pic">
						<a href="{:U('UserCompany/user_detail',array('id'=>$user4['id']))}">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="{$user4['card_img']}" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name">{$user4['full_name']}</font></p>
								<p class="card-text">{$user4['introduce']|htmlspecialchars_decode}</p>
							</div>
						</div>
						</a>
					</div>
				    {/foreach}
				</div>
				{if condition="$user4_show"}
				<div class="infinite-scroll-preloader" id="user4_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user4_submit();" class="user4_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				{else/}
				<p id="load_more"> 暂无数据！</p>
				{/if}
			</div>
			
			<div class="in_hot_box mechan tab" id="a3">
				<div id="user5">
					{foreach name="user5_data" item="user5" key="k"}
					<div class="card demo-card-header-pic">
						<a href="{:U('UserCompany/user_detail',array('id'=>$user5['id']))}">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="{$user5['card_img']}" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name">{$user5['full_name']}</font></p>
								<p class="card-text">{$user5['introduce']|htmlspecialchars_decode}</p>
							</div>
						</div>
						</a>
					</div>
				    {/foreach}
				</div>
				{if condition="$user5_show"}
				<div class="infinite-scroll-preloader" id="user5_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user5_submit();" class="user5_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				{else/}
				<p id="load_more"> 暂无数据！</p>
				{/if}
			</div>
			
			<div class="in_hot_box mechan tab" id="a4">
				<div id="user6">
					{foreach name="user6_data" item="user6" key="k"}
					<div class="card demo-card-header-pic">
						<a href="{:U('UserCompany/user_detail',array('id'=>$user6['id']))}">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="{$user6['card_img']}" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name">{$user6['full_name']}</font></p>
								<p class="card-text">{$user6['introduce']|htmlspecialchars_decode}</p>
							</div>
						</div>
						</a>
					</div>
				    {/foreach}
				</div>
				{if condition="$user6_show"}
				<div class="infinite-scroll-preloader" id="user6_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user6_submit();" class="user6_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				{else/}
				<p id="load_more"> 暂无数据！</p>
				{/if}
			</div>
			
			<div class="in_hot_box mechan tab" id="a5">
				<div id="user7">
					{foreach name="user7_data" item="user7" key="k"}
					<div class="card demo-card-header-pic">
						<a href="{:U('UserCompany/user_detail',array('id'=>$user7['id']))}">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="{$user7['card_img']}" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name">{$user7['full_name']}</font></p>
								<p class="card-text">{$user7['introduce']|htmlspecialchars_decode}</p>
							</div>
						</div>
						</a>
					</div>
				    {/foreach}
				</div>
				{if condition="$user7_show"}
				<div class="infinite-scroll-preloader" id="user7_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user7_submit();" class="user7_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				{else/}
				<p id="load_more"> 暂无数据！</p>
				{/if}
			</div>
			
			<div class="in_hot_box mechan tab" id="a6">
				<div id="user7">
					{foreach name="user8_data" item="user8" key="k"}
					<div class="card demo-card-header-pic">
						<a href="{:U('UserCompany/user_detail',array('id'=>$user8['id']))}">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="{$user8['card_img']}" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><font class="name">{$user8['full_name']}</font></p>
								<p class="card-text">{$user8['introduce']|htmlspecialchars_decode}</p>
							</div>
						</div>
						</a>
					</div>
				    {/foreach}
				</div>
				{if condition="$user8_show"}
				<div class="infinite-scroll-preloader" id="user8_quan" style="display:none;">
					<div class="preloader"></div>
				 </div>
				<p onclick="ajax_user8_submit();" class="user8_more" id="load_more"><span class="icon icon-down"></span> 点击加载更多...</p>
				{else/}
				<p id="load_more"> 暂无数据！</p>
				{/if}
			</div>
			
			
			
			</div>
		</div>
		
{include file="Public:footer" /}

<script>
var  page_user3 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user3_submit()
{	 	 	 
	    $("#user3_quan").show();
	    page_user3 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userThree/is_ajax/1/p/"+page_user3,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user3_quan").hide();
				if($.trim(data) == ''){
					$('.user3_more').hide();
				}else{
				    $("#user3").append(data);
				}
			}
		}); 
} 
var  page_user4 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user4_submit()
{	 	 	 
	    $("#user4_quan").show();
	    page_user4 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userFor/is_ajax/1/p/"+page_user4,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user4_quan").hide();
				if($.trim(data) == ''){
					$('.user4_more').hide();
				}else{
				    $("#user4").append(data);
				}
			}
		}); 
} 
var  page_user5 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user5_submit()
{	 	 	 
	    $("#user5_quan").show();
	    page_user5 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userFive/is_ajax/1/p/"+page_user5,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user5_quan").hide();
				if($.trim(data) == ''){
					$('.user5_more').hide();
				}else{
				    $("#user5").append(data);
				}
			}
		}); 
} 
var  page_user6 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user6_submit()
{	 	 	 
	    $("#user6_quan").show();
	    page_user6 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userSix/is_ajax/1/p/"+page_user6,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user6_quan").hide();
				if($.trim(data) == ''){
					$('.user6_more').hide();
				}else{
				    $("#user6").append(data);
				}
			}
		}); 
} 
var  page_user7 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user7_submit()
{	 	 	 
	    $("#user7_quan").show();
	    page_user7 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userSeven/is_ajax/1/p/"+page_user7,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user7_quan").hide();
				if($.trim(data) == ''){
					$('.user7_more').hide();
				}else{
				    $("#user7").append(data);
				}
			}
		}); 
} 
var  page_user8 = 1;
/*** ajax 提交表单 查询订单列表结果*/  
function ajax_user8_submit()
{	 	 	 
	    $("#user8_quan").show();
	    page_user8 += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"/UserCompany/userEight/is_ajax/1/p/"+page_user8,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#user8_quan").hide();
				if($.trim(data) == ''){
					$('.user8_more').hide();
				}else{
				    $("#user8").append(data);
				}
			}
		}); 
} 


window.onload=function(){
	var oTab=document.getElementById("mechanism-tab")
	var oTabLi=oTab.getElementsByTagName("a");
	var Width=oTabLi.length*5+"rem";
	oTab.style.width=Width
}
</script>